<div class="site-showcase">
  <!-- Start Page Header -->
  <div class="parallax page-header" style="background-image:url(http://placehold.it/1200x260&amp;text=IMAGE+PLACEHOLDER);">
  		<div class="container">
        	<div class="row">
            	<div class="col-md-12">
  					<h1><?php echo __('Package Review and Confirmation'); ?></h1>
        		</div>
           </div>
       </div>
  </div>
  <!-- End Page Header -->
  </div>
  
    <div class="main" role="main">
      <div id="content" class="content full">
        	<div class="container">
          		<div class="page">
        			<div class="row">

					<?php echo $this->set('title_for_layout', 'Get Register'); ?>
               			<div class="col-md-12">
         				   
                          <div class="clearfix"></div>
                          <div class="block-heading" id="details">
                     			 <a href="#additionalinfo" class="btn btn-sm btn-default pull-right"><?php echo __('Additional Info'); ?> <i class="fa fa-chevron-down"></i></a>
                              <h4><span class="heading-icon"><i class="fa fa-home"></i></span><?php echo __('Details'); ?></h4>
                          </div>
                          <?php if(!$this->Session->read('Auth.User')){ ?>
              			<div class="col-md-6 col-sm-6 register-form">
                        	<h3><?php echo __('Register'); ?></h3>
								<?php echo $this->Form->create('User', array('role' => 'form')); ?>
                        		<div class="input-group">
  									<span class="input-group-addon"><i class="fa fa-user"></i></span>
									<?php echo $this->Form->input('first_name', array('label'=>false,'class' => 'form-control', 'placeholder' => 'First Name'));?>
								</div>
                             <br>
                        		<div class="input-group">
  									<span class="input-group-addon"><i class="fa fa-user"></i></span>
									<?php echo $this->Form->input('last_name', array('label'=>false,'class' => 'form-control', 'placeholder' => 'Last Name'));?>
								</div>
                             <br>
                        		<div class="input-group">
  									<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
									<?php echo $this->Form->input('email', array('label'=>false,'class' => 'form-control', 'placeholder' => 'Email'));?>
								</div>
                             <br>
                        		<div class="input-group">
  									<span class="input-group-addon"><i class="fa fa-lock"></i></span>
									<?php echo $this->Form->input('password', array('label'=>false,'class' => 'form-control', 'placeholder' => 'Password'));?>
								</div>
                             <br>
                        		<div class="input-group">
  									<span class="input-group-addon"><i class="fa fa-refresh"></i></span>
									<?php echo $this->Form->input('re_password', array('type'=>'password','label'=>false,'class' => 'form-control', 'placeholder' => 'Repeat Password'));?>
								</div>
                             <br>
                        		<div class="input-group">
  									<span class="input-group-addon"><i class="fa fa-users"></i></span>
									<?php echo $this->Form->input('user_role', array('options'=>array('agent'=>'As Single Agent','broker_admin'=>'Broker (Multi Agents)'),'label'=>false,'class' => 'form-control', 'placeholder' => 'Repeat Password'));?>
								</div>
                             <br>
							<?php // echo $this->Form->submit(__('Register Now'), array('class' => 'btn btn-primary')); ?>
							<?php //echo $this->Form->end() ?>
            			</div>
                          <?php } ?>

              			<?php if($this->Session->read('Auth.User'))
                        echo '<div class="col-md-12 col-sm-12">';
						else
                        echo '<div class="col-md-6 col-sm-6">';
                        ?>
                          
						  
						  <?php if(!$this->Session->read('Auth.User')){ ?>
            				<div class="alert alert-default fade in">
            					<h4><?php echo __('Before you Register!'); ?></h4>
								<p><?php if(isset($websiteSettings['before_you_register'])) echo $websiteSettings['before_you_register'];  ?></p>
                         </div>
                          <?php }else{ ?>
            				<div class="alert alert-default fade in col-md-6 col-sm-6">
            					<h4><?php echo __('Before Renew your Account!'); ?></h4>
								<p><?php if(isset($websiteSettings['before_you_renew_account'])) echo $websiteSettings['before_you_renew_account'];  ?></p>
                         </div>
                          <?php } ?>
                         

						<?php if($shop['Package']['popular']==1) $popular	=	'pricing-column highlight accent-color'; else  $popular	=	'pricing-column';?>
                        
              			<?php if($this->Session->read('Auth.User'))
                        $popular_loging_class	= ' col-md-6 col-sm-6 col-xs-12 ';
						else
                        $popular_loging_class	=	 ' col-md-12 col-sm-12 col-xs-12 ';
                        ?>
                              <div class="<?php echo $popular; echo $popular_loging_class; ?>">
                              <h3><?php echo h($shop['Package']['title']); if($shop['Package']['popular']==1) echo '<span class="highlight-reason">Most Popular</span>'; ?> </h3>
                              <div class="pricing-column-content">
                                <h4> <?php 
								if($shop['Package']['price']>0){
								echo '<span class="dollar-sign">$ </span>';
								echo h($shop['Package']['price']);
								}
								else
								echo __('Free');
								
								 ?> </h4>
                                <span class="interval">For <?php echo h($shop['Package']['months']); ?> Month(s)</span>
                                <ul class="features">
                                  <li><?php echo h($shop['Package']['description']); ?></li>
                                  <li>And Also This</li>
                                  <li>You can Do this</li>
                                </ul>
                                 </div>
                            </div>
            			</div>
		<hr>



			<?php echo $this->Form->create('Order'); ?>

			<?php if((Configure::read('Settings.AUTHORIZENET_ENABLED') == 1) && $shop['PackageOrder']['order_type'] == 'creditcard') : ?>
			<?php echo $this->Form->create('Order'); ?>
         				   <div class="block-heading" id="details">
                     			 <a href="#additionalinfo" class="btn btn-sm btn-default pull-right"><?php echo __('Additional Info'); ?> <i class="fa fa-chevron-down"></i></a>
                              <h4><span class="heading-icon"><i class="fa fa-home"></i></span><?php echo __('Credit Card'); ?></h4>
                          </div>
                          
              			<div class="col-md-6 col-sm-6 register-form">
<style type="text/css">
    #ccbox {
        background: transparent no-repeat  url("<?php echo $this->webroot; ?>img/cards.png") ;
        margin: 0 0 10px 0;
        padding: 0 0 0 150px;
        width: 0;
        height: 23px;
        overflow: hidden;
    }
</style>
	
    <span class="input-group" id="ccbox">&nbsp;</span>
    
    <div class="input-group">
        <?php echo $this->Form->input('creditcard_number', array('class' => 'form-control ccinput', 'maxLength' => 16, 'autocomplete' => 'off')); ?>
    </div>
	<div class="input-group">

        <?php echo $this->Form->input('creditcard_month', array(
            'label' => 'Expiration Month',
            'class' => 'form-control',
            'options' => array(
                '01' => '01 - January',
                '02' => '02 - February',
                '03' => '03 - March',
                '04' => '04 - April',
                '05' => '05 - May',
                '06' => '06 - June',
                '07' => '07 - July',
                '08' => '08 - August',
                '09' => '09 - September',
                '10' => '10 - October',
                '11' => '11 - November',
                '12' => '12 - December'
            )
        )); ?>
    </div>
	<div class="input-group">
        <?php echo $this->Form->input('creditcard_year', array(
            'label' => 'Expiration Year',
            'class' => 'form-control',
            'options' => array_combine(range(date('y'), date('y') + 10), range(date('Y'), date('Y') + 10))
        ));?>
    </div>

<br />

	<div class="input-group">
        <?php echo $this->Form->input('creditcard_code', array('label' => 'Card Security Code', 'class' => 'form-control', 'maxLength' => 4)); ?>
    </div>

<br />

<?php endif; ?>

<?php 

	if($shop['Package']['total']>0)
	$Payment	=	'Payment';
	else
	$Payment	=	'';

	if(!$this->Session->read('Auth.User'))
	echo $this->Form->button('Confirm '.$Payment.' & Get Register', array('class' => 'btn btn-primary', 'ecape' => false));
	else
	echo $this->Form->button('Confirm '.$Payment.' & Update Account', array('class' => 'btn btn-primary', 'ecape' => false));
	 ?>

<?php echo $this->Form->end(); ?>

<br />
<br />


	</div>
        		</div>
      		</div>
    	</div>
  	</div>
  </div>
